-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query : Add support for final GroupBy operator #28972
Conversation
9067e43
to
74f7799
Compare
object IEnumerator.Current | ||
=> Current!; | ||
|
||
public bool MoveNext() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any potential to DRY across the different querying enumerables (in the future)? If so maybe a tracking issue...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core enumerators have different mechanism to iterate wrt related data and grouping. There can be some refactoring to introduce hierarchy though it could have some perf impact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i agree we don't want to regress perf for this. Just something to think about for the future in case it's relevant.
// It should be only at top-level otherwise GroupBy won't be final operator. | ||
// Cloning skips it altogether (we don't clone top level with GroupBy) | ||
// Pushdown should null it out as if GroupBy was present was pushed down. | ||
private List<(ColumnExpression Column, ValueComparer Comparer)>? _preGroupByIdenifier; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private List<(ColumnExpression Column, ValueComparer Comparer)>? _preGroupByIdenifier; | |
private List<(ColumnExpression Column, ValueComparer Comparer)>? _preGroupByIdentifier; |
// This indicates that GroupBy was not condensed out of grouping operator. | ||
throw new InvalidOperationException(CoreStrings.TranslationFailed(query.Print())); | ||
} | ||
if (!(groupByNavigationExpansionExpression.Source is MethodCallExpression methodCallExpression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is not
@@ -134,6 +134,9 @@ | |||
<value>Transactions are not supported by the in-memory store. See http://go.microsoft.com/fwlink/?LinkId=800142</value> | |||
<comment>Warning InMemoryEventId.TransactionIgnoredWarning</comment> | |||
</data> | |||
<data name="NoncomposedGroupByNotSupported" xml:space="preserve"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
<data name="NoncomposedGroupByNotSupported" xml:space="preserve"> | |
<data name="NonComposedGroupByNotSupported" xml:space="preserve"> |
74f7799
to
e253d54
Compare
Resolves #19929